package cn.edu.hqu.cst.lingshou03.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

@Data
@TableName("orders")
public class Order {
    private String ordeDate = "";
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long productId;
    private Integer quantity;
    private Double totalPrice;
    private String status;
    private Date orderDate;
    // 构造函数、getter 和 setter 方法
    public Order(Long id, Long productId, int quantity, double totalPrice, String status, String orderDate) {
        this.id = id;
        this.productId = productId;
        this.quantity = quantity;
        this.totalPrice = totalPrice;
        this.status = status;
        this.ordeDate = orderDate;
    }

    public Order(String ordeDate) {

        this.ordeDate = ordeDate;
    }

    public Order() {

    }

    public void setProductId(String number) {

    }
}
